package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc ConfItemClassDto
 * @使用场景
 */
@Data
public class ConfItemClassDto extends BaseDto implements Serializable {

    /**
     * 配置方案下分组ID:
     */
    @ApiModelProperty("配置方案下分组ID")
    private String confItemClassId;

    /**
     * 配置项分组标识:
     */
    @ApiModelProperty("配置项分组标识")
    private String confItemClassCode;

    /**
     * 配置项分组名称:
     */
    @ApiModelProperty("配置项分组名称")
    private String confItemClassName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      ConfItemClassDto that = (ConfItemClassDto) o;
      return  confItemClassId == that.confItemClassId&&confItemClassCode == that.confItemClassCode&&confItemClassName == that.confItemClassName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), confItemClassId,confItemClassCode,confItemClassName);
    }

}
